#ifndef _GLB_RES_
#define _GLB_RES_


#ifdef __cplusplus
 extern "C" {
#endif

#include "debug.h"
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "timers.h"
#include "queue.h"
#include "cJSON.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>


#define CH32_LOGI(TAG, format, ...) \
    LogOutput("[I][" TAG "] " format "\r\n", ##__VA_ARGS__)

#define CH32_LOGW(TAG, format, ...) \
    LogOutput("[W][" TAG "] " format "\r\n", ##__VA_ARGS__)


#define CH32_LOGE(TAG, format, ...) \
    LogOutput("[E][" TAG "] " format "\r\n", ##__VA_ARGS__)


 typedef struct {
      char type[32];
      char device_id[32];
 } OTA_Update_Cmd_Typedef;
extern QueueHandle_t OTA_Update_Cmd_Queue;

void Global_resources_Init(void);
void LogOutput(const char* format, ...);

#ifdef __cplusplus
}
#endif



#endif
